Remove some duplication in testfilechooserbutton
authorManu Cornet <m@ma.nu>
Mon, 17 Sep 2018 12:27:46 +0000 (12:27 +0000)
committerManu Cornet <m@ma.nu>
Mon, 17 Sep 2018 12:27:46 +0000 (12:27 +0000)
commita0056d5ca859e1be8551b15ecd0d64f66da8af3e
treed1d81ff2ccbfb466b783230f6254d5d9ffa0f556
parentf3e6d00db17cf22d8e9b875452dc7a7ed72bd677
Remove some duplication in testfilechooserbutton

Most of the code creating the two types of dialogs (open file,
choose folder) is the same. This refactors the common code into a
helper method. This also makes it easier to add other chooser types
for this test (e.g. save file).
tests/testfilechooserbutton.c